<script lang="ts" setup>
import elCn from "element-plus/dist/locale/zh-cn.mjs";
import elEn from "element-plus/dist/locale/en.mjs";
const { locale } = $(useI18n());
const elLocale = computed(() => {
  if (locale == "简体中文") return elCn;
  else if (locale == "English") return elEn;
  else return elCn;
});
</script>
<template>
  <el-config-provider :locale="elLocale">
    <router-view />
  </el-config-provider>
</template>
